// 过滤歌曲时长转换为分秒格式
export function formatMusicTime(time: number) {
  const timee = parseInt(String(time / 1000))
  //分钟
  const minute = timee / 60
  let minutes: number | string = parseInt(String(minute))

  if (minutes < 10) {
    minutes = '0' + minutes
  }

  //秒
  const second = timee % 60
  let seconds: number | string = Math.round(second)
  if (seconds < 10) {
    seconds = '0' + seconds
  }
  return `${minutes}:${seconds}`
}
